package com.bos.util;

import com.bos.domain.StatusLaporan;

import java.util.List;


/**
 * Created by IntelliJ IDEA.
 * User: compaq
 * Date: 6/27/11
 * Time: 6:41 PM
 * To change this template use File | Settings | File Templates.
 */
public final class StringUtil {
    public static StatusLaporan convertHtmlNewLine(StatusLaporan statusLaporan){
        statusLaporan.setKeterangan(statusLaporan.getKeterangan().replace("\n","<br/>"));
        return statusLaporan;
    }

    public static List<StatusLaporan> convertHtmlNewLine(List<StatusLaporan> statusLaporanList){
        for(StatusLaporan statusLaporan: statusLaporanList){
            StringUtil.convertHtmlNewLine(statusLaporan);
        }
        return statusLaporanList;
    }
}
